file(GLOB_RECURSE job_obj_srcs *.cpp)
 
add_library(job_obj
    OBJECT
    ${job_obj_srcs}
)
MESSAGE("framework_path:${FRAMEWORK_INC_PATH}")
target_include_directories(job_obj
    PUBLIC
    ${PLUGIN_FRAMEWORK_PATH}/inc
    ${PLUGIN_FRAMEWORK_PATH}/inc/job
    ${PLUGIN_FRAMEWORK_PATH}/inc/thrift_interface
    ${PLUGIN_FRAMEWORK_PATH}/inc/common
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc/certificateservice
 
    ${PLUGIN_SRC_PATH}
    ${PLUGIN_SRC_PATH}/common
    ${PLUGIN_SRC_PATH}/common/application
    ${PLUGIN_SRC_PATH}/common/constant
    ${PLUGIN_SRC_PATH}/nas_service
    ${PLUGIN_SRC_PATH}/nas_service/nas_replication
    ${PLUGIN_SRC_PATH}/utils

    ${MODULE_ROOT_PATH}/src/
    ${MODULE_ROOT_PATH}/src/parser
    ${MODULE_ROOT_PATH}/src/threadpool
    ${OPEN_SRC_PATH}/jsoncpp_rel/include
    ${OPEN_SRC_PATH}/boost_rel/include
    ${MODULE_PLATFORM_PATH}/SecureCLib_rel/include

    ${PLUGIN_SCANNER_PATH}/localhost_src
    ${PLUGIN_SCANNER_PATH}/localhost_src/interface
    ${PLUGIN_SCANNER_PATH}/localhost_src/filter
    ${PLUGIN_SCANNER_PATH}/localhost_src/model
    ${MODULE_ROOT_PATH}/src/libsmb_ctx
    ${MODULE_ROOT_PATH}/src/libnfs_ctx

    ${PLUGIN_SRC_PATH}/nas_service/nas_snapshot
    ${PLUGIN_SRC_PATH}/nas_service/nas_share
    ${PLUGIN_SRC_PATH}/nas_service/nas_share/common
)
 
target_link_libraries(job_obj
    PRIVATE
    interface_thrift_func
    nas_share_common_obj
    host_archive_restore_obj
    scanner_interface
    backup_interface
    common_dep
)
